updated for PoW support