added back proxy and ssl support