prepare for useful event handling