pass reader around, print error msg