lasybear: I've already added some my side, may be you also want to add some features on your sgminer fork:
https://github.com/nicehash/sph-sgminer/commits/masterI think that some about pool switching, idle and restart could be useful if anyone wants to use NiceHash

\Jeky
Btw, somebody needs to notify the main dev of sph-sgminer that it has a bug with in the gen_stratum_work function, it uses an uninitialized variable as an index that causes undefined behaviour. Whoever added that commit forgot to write the actual loop.