pipe spawn and monitor function