Smart set top box