fix event based running from ses