cleanup the cnd parser