use SocketAgent interface

test on local machine.
and this???