allow errors to be defined in global scope