adding support for multiple paths and cleaned up some of the plugin logic for cleaner syntax