added proxy support back
added in ssl support and fixed proxy support