updated infrastructure to accept a query using the rs_sync mode