some more functionality for hashes