migrating to a more hapi way