added timeout to rpc calls