intelli_plug: some fixes