backup before branch switch