make sure the port is a int