added 'dryRun' option