socket test ok and need input twice cmd bug