add clean-cruft function
fix