refined package.json and bugs in API