pass timeout paramater to serial
pass timeout paramater to serial