add execution context with exception handling