only case classes are supported.