updating how the endpoints data is populated to reflect the change in structure of environment.py