added remote quering