garbage collection on scripts