add startHash, rework api
hash example