temp tcp client refactoring