generation default settings from config; fixed template generation bug