fixed it up

Hi,

i fixed it a bit and added proxy server support