Add configuration filter to replace global.onLoadConfig