change to version func for sgminer