taking in json for add_instances call