cleanup of console logging