changed some logging