fix getRemotePortPaths which was always returning null