fixing client side port / url mapping