[minor] add before and after emits