renamed noerrors() to disableErrors() and added enableErrors() function