added pathResolver and refactored ReaderResolver