add schema and index.js work