simplify scripts: template and input