removing unnecessary dependency in check_output