removes cruft, adds locale