add support for conditional classes