reorganized gridpath stuff