resolvePath basic impl