implement (possibly) working locale switch