init - base template from Flasky book