make pipeAction applicable to both bytestring and filepath input
reduce wait time while waiting for pipe created