config template cleanup