fixing compilation errors.
hashing not working yet