bugfix - still not waterproof but will functioning for a while (there is a problem of the concurrent loading and update terrytory requests...)
fix to wait for valid root before asking for updateTerritory
Merge remote-tracking branch 'origin/master' into connectionXing