better parse handing of ENDDEF