add ability to do dryrun for testing