first pass at MQ coder