nicer export function