changed some logging stuff