changed add_port order