function to save to file
fixed lang file
prate now only updates not readonly data