implement output_checked_by_script function