query engine and widget fixes
profiling in