simplify the settings and use template rendering instead of python string format