adding profiler, subnav queries only when necessary