hapi plugin to implement return back algorithm