Revert "remove  CustomConfig"

This reverts commit f5cee24b9b9a1ba173156274d58f62a5f242f066.