removed duplicate check in check_cruft