updated base.tpl & run.py