code improved to discover the mgmt_interface faster