forward declaration of handleInitEvent is not needed