rebase script draft