template and stackmob init