fix mac build
extend base api