made serial port example non-blocking