#7 adding a little logging