safe keyboard_layouts to file / read from file