improved some logging