sophia: switch to different file layout, recover update