add IOStream and client