event handler now closely follows the driver4.cpp example the Cbc/examples