add prefix and suffix to config, update config template