added some loggings