added hapi and logging