copr bmp api from lance project as lib