add events on start and on stop