add in some more logging