changed to support hapi 8.0