add reed-solomon encoding.