serial parser change logic