remove weird cruft