capture app output / output redirect