new tirage automaton; moved grid queries to views