cleanup scripts helper