move TCP and SSL to ext.rb