implemet autoscan
Merge pull request #4 from fbukevin/autoscan

#2 implement auto scan