rebase legacy