add pbd plug and unplug