debug in apps/index.js