added generator to export (instead of gen)