we'll add save_all() to handle the JSON and call in main to finish