implement store_grid and fetch_grid.