added export debug file with affinity