fixed check_all_output()