added xml-rpc rewrite