migrate to new cryptohash
clean warnings
fix test suite