fix stupid debug logging