added optional file moving