modified Reader and Writer iotools