added some needed logging