some support for tracing frames
improved error processing
batch queries subquery caching