passing base class as string was allowed.