[init] some template code