add pry-rescue, and fix Team index building
clean up networks controller a bit