add plug & unplug