inherit depth from parent
use query for store if has one
Merge branch 'master' of https://wshager@github.com/lagua/dlagua.git