Upgraded 1.1 code to Hapi 8