new exception based calling of error handlers
small code fix
small bug fixed