support of long queries