tweak so we get the right port number