a much better solution to the strange queue problem... supercedes ca9d76aa8588e0f5c393b623e0ec4aa76f22fd8a