PLAN: a bit tuned TODO
IMPL: save target_ref. Seems like have all necessary to perform restoring
REFACTOR: separated main to init and continue
IMPL: options parsing, --abort(have not checked yet), stubs for --continue and --skip
FIXUP: fix read_file()