add document configuration