working on shell, need to rethink pipe structure, looking for best way to keep track of open/closed pipes