directory resolving