export some API and add unit test