setup doc model