add events and hitting endpoint