added some logging