allow capturing child's stdin and stdout to be configurable