beginning work on nested foreach plans