working on doc generation