add debug trace to app create/query ops