added stack for accesing the functional context inside a Visitor