matching the new barefoot apiadapter api. super fancy.