supporting hapi 3. Closes #3