event handlers in ODE now also provide the switching function variation (increasing/decreasing) when an event occurs