tweak to nonce output and header shrink