restore old laserscanner code