additional methods to hash_spec