mode dequeue stuff out of main file