modified val_hashmap hooks