refactor Dir enum