merge remove and add stdout & stderr