added some template features