changed raw_text flag to a format configuration