rebase directories