hapi 8 and invalid bug. Closes #39. Closes #40