fix local url and production url, add export function