changes to doc generation