WIP: trying to export as.matrix