added stack tracing for functions and filters