added flush

added flush command so that you can see what files are being changed during the migration