potentially fixed the MultilevelQueue issue and cleaned output