refactoring mountpoint resolution