templating sd_add