implemented dry run switch