rename to resolveDir