update to new liboath API