inital exporter function - needs to be tested