added basic functions for scanner