with new api and cmake
2