query rewrite client edit