scanning goes on/off with pause/resume