module.export a full class instead of a function