set switchable proxy functionality