add more logging for debugging this thing