improved serial connection