add a new option to decode encdata
fill in ENCDATA parser