parser for MDS token