made slightly more debuggable by aliasing module.exports to a named function
fixed dependencies