trying to create optional role using when and tag