passing format in the template extension is deprecated