updated event schema, added api call methods to server