upgrade clean script