added stack to ex handling