some refactoring for eport function
add export function