improved chunked api