added --dry-run option