add `to_print=True` to retrieve.py