Improved templating in init_tld