init with the template

Signed-off-by: Jocelyn Zhu <jocelynzhu@live.com>