added WriteTemplate method stub, needs implementation