added createEvent script