sort of working scanner