use proxy settings if they exist

seems to work fine for me. not sure if this catches all the special cases though (: