updated nexia code