upgrade code on initial highstate failure