copied target_discovery to add_system_to_max