old script cleanup