added export function for IPIN != 0 and more than one source