event handling: fails registering