working on pluginthread