working on doc system; wip