changing the mechanism to be notified on process start and process end