make hapi 4 compat