example for onLoadConfig