changed SIMPLE to use [anywhere] rules for lookup
used globalOptions.debug; fixed some bugs