added local settings, added template