capi: added track functions + wrappers