changed endpoints to ports