add undefined class and matWithDrvs constructor