made saveFile serializable