add target validation and use all targets if none are specifed via command option