hapi 1.0 api