change document and config