fix proxy support

resolves #1