fixed 'invalid credentials'; misc fixes for proxy config.