update for new json format and also have networks endpoint working