tested and fix clean script