add auto focus scan functionality