grid and grid debug
some work towards making this thing viable.