split queue-consumer specific functions off into qcon.py