update to new api and use of binaries