updated gen block, added script to rehash if needed