fix genericreader