added message exporting feature