plugin now has a correct thread and is able to be activated and deactivated