removed some of the fluff copied from check_cgminer