put a little copypasta into utils.py