added some logging capabilities