implementing self.class global variable.
support inner zones to be matched by structure.