add getDirection for Reader class