Replace private hapi api