AFAIK this may blow up in some edge cases if a powernet changes while the update is in process but just roll with it and see if it breaks