lua: (xpsave) clean up