exact copy of grs-sgminer 1.4 (which is being deprecated)