work on local scan