pass args to templates properly