break up long lines
move templating setup to top of file
break up long lines
break up long lines
switch arg order for consistency
switch arg order for consistency