queue module complete; no glue with the rest of the code