fix get_queries in attic