Moved get_cluster and add_cluster to use _write_file and _read_file.