changed plugin registering