cleaned up the way data is grabbed from the servers and added to the json file