fix segment fault in Parser. add priority to list command