added hapi, index.js