tmp(): moved template and script here