use when
make default-config a function