complete refit to make this a standard hapi plugin