update preparation script