tested read and write from scrambled filename