simplified some logging