added ability to create events