added some logging;