move createfifo and createout into setup, and their closing counterparts into cleanup