read and write files works again