cleanup
fixed crashes
threading fix
proxy support, cleanup
tweaks
fixed another threading problem