added dry run option