add utils.py for common use