changed export API to match docs