added some logging lines