add astquery to refernce