adding back in check_output