beginning to transition code to hapi 2.x