[undebugged]rewrite backup function & add 2 utils function