delete replace_config, change to script