moved API to use lib-api dep