parse mthod returns commands