cleaning up stdout before logging