updated to send the whole event as json