add scheduler query