better paste,set locale in code