switched to json as file save format