simplifying the directory module