added some more logging