remove a bunch of stuff that should have been ignored