export function to subshells