added sync to query server