restore checkouts
fix branch creation