grid and generator partially working