set module.exports safely