add config for docgen
can set eraseBuffer for response