small changes to filesave