example of reading stdin/out/err using async funcs