refactored readInDefaultDirectory