change module to node exports