upgraded template to work with NBB v0.2.1