updated for hapi 3