global deter refactor : really easier way to use the plugin and better examples