worked on debug for serial parser