added dry-run option
changed from input-dir to workdir concept