added dry run mode