add static method for parseutil.py