added config_port_set/clear functions