have the port_detect/port_remove return an object