config dir refactor