update to use template file.