trim superfluous cruft