resolve the export function