add timeout to serial devices