template file extension is passed in
template file extension now needs to be passed in