make work with hapi 3