implement user export function