added init to templates