modify export function
add log