add mat file parsing