remove useless cruft