save events to server