added restConfig param