added a little more logging