switched to check_output