index.js -> reg