now can query from file