added some logging on Logic