test code to fit latest barefoot version