script clean up