better handling of error levels, added method setNewError()