bugfix: pipe ouput and input to sub call