that was more or less what i started with, then added to for debugging purposes,
which showed every thing as correct, but the file was not saved