update remote and box info detection code.