move plugin (un-)install in plugin class