made territory code handling vase-insensitive by normalising everything internally to lower case