fixes in file save