expose API in example