adding hasher utils and doing some other code cleanups