added some logging messages