added event handling during send