fixes for man() and write_the_docs()