cleanup before new branch creation