save core config from script