added more general import/export using dm-serialize