implement dry-run option
found a meaningless variable -- this may be a bug