fixed pipe, no longer exits main