introduced check_result_flags