unify user export function