uncommented old docgen stuff