start and stop events for scanning