add ability to set request format that will also trigger putting the flash in the header