rebase export code