code compiles and runs nicely, turns out key->hash is a function pointer