refactor to leverage hapi plugin options