implemented include_docs handling