collecting stdout/err