adding functor to GenericReader