improvement in cords parser to allow multi thread operation