like doc_gen3 except this one is going to work