proper options handling, now supports tag and branch targeting