necessary changes to allow plugin to work in global install location