added proxy support closes #3