prepare to rebase