basic cleanup of not allowed links