preparing upgrade core gadgets