fixed if logic to allow for multiple scanners to run if detected