script reload clean up