adding grids and graphs to CUPE