added capability to add events