changed plugin to be hapi 6 compatible.