first shot at utils.py