remove isPathRemote, as it is not used.