make it a npm lib