updated and tested startScan.php