use buffered queries