add support for contional classes