adding grid infrastructure