restructure main logic

refractored code for snapshot_exp-control
Need to add check of successful snaps