added matrix save/download