added some logging to fit acceptance crit