reader utils refactoring