refactor all methods in docs-model