working on saving queue to json file