scanner functionality working...first draft tho? anyway I need coffee