changed main function name to exporter