updated to work with hapi 6 requires