port and server stuff