more progress on backup system

Still unfinished