update acorr to write to a permanent file instead of a temporary file