added event based gateway to change process