added function config_port_mode