supported adding events (need email logic from travis) PLEASE REVIEW and tell me how to refactor to make it cleaner