implement proxy.rb with TCP raw logging