changed plugin impelementation