add support for socket connection? #7