provide register/unregister functionality for host types (and this way remove the nasty 'eval()')