added logging to gather.py