implemented Intelli_plug