fixed up API to now create events