add some doc2.sh functions