added some print statements that can get turned on with a verbose=True