add thread reading stderr