implement immediate query flag