fixes open3 & waitpid