add scan activity
update scan logic