converted this to a hapi plugin project