events: create before and after events