upgrade and delete scripts