added check_ext_port