add instance name to tempfile