add ctidscan
remove temp file