initial version of scanner