added import/export function