refactor snake dirs