add config for rest