added support for TCP protocol