adding tempfile for ts purposes