updated plugin in attempt to fix undefnied function