add document, add config into Detective