raise error if extend classes are missing