rebase directory