added for runit
corrected call to template so that it gets access to jinja_env.  Also removed extranneous bool calls