add function in jh_file.py