templating with custom url and token