expose some apis publicly