added schedule querying