splitting up stderr and stdout