added config flag to do a dry run