link and template engine usage fix