adding timeout configuration for serial connection