2018-08-02 initial release 2020-06-07 code cleanup 2020-11-19 changed scanfunction to match other checks