change main of direct scanner