A set of fixes to retry the query for missing intervals in the timeline

can we avoid having to set anything on the context before running queries?