add parse command and get the pipe number