added 'not' and 'or' functions
don't index manually (not needed anymore)