fixing some export format issues