update config to support mutiple templates