update ./tempfile