fixes to saving files
this vs self fix