changed SaveData to optionally append instead of overwrite