make readDirectory a static method