changed plugin reg method