cleaned up ruby proxy