fix file saving bugs+points

0