working on pluginthread debugging