modify runQuery argu encode type