initial commits for grid implementation