refactor find_conf_by_address so that it's more readable