optimze direct scanner