support for hapi 3.x - fixes #28