put common functions used by more than one scripts into utils.py