replace wrapReader with consoleReader