added new methods for export to R