bug fixes + stratum changes from nonce-pool