some debugging code for queue length in ostprocessing