added logging of results in utils.py