recovered util.py that was removed for some reason