added legacy parsing for old specification format