updated host, port optimization