method, addErr and removeerr proto added