reader is mostly debugged