rewriting our scripts