add format field in method description
bind closures to template