use sha256 for difficulty control, rewrite multi-partition sizes