reorg libs and update boot order
patch up