fixing mquery with values needing serialization