use threads for tailing.