switch from regular buffers to ndarrays for rendering