import/export function (needs some polish and testing)