added socks4 proxy protocol. code needs massive refactoring module