update config & stat statics