improved start bit detection