making compaitble with hapi 4.x.x