enable callback when dup file