moved inQueue to its own namespace