fitting the latest version of barefoot api