getlayer query - debug