event creation doesn't work, need to fix