swap out host and port with new address class