use send_chunk for rendering