add format parameter to the model templates for issue #22