mutliple fixes. proxy checking implemented