add logging and use write for iarc (bug 964311)