use flag to enable the pipe stack