merged flush doc into respnse