small fix to work with sub-subdomains
merged, forgot pdb_set_trace()