reset and scan scripts