explicitly pass outQueue to so it doesn't need to be a global