created init method; added dry_run param