fixes to serial capture