avoid double move of file