added index file and hapi server