change ._formatPath() to a public method .resolvePath()