add new doc2.sh functions