basic query interface working