adding some more debugging around app detection