making error and warning prefixes configurable