revise extraction to move file after reading