logging module ref fix