made this a npm module