use isinstance, not __class__.__name__
merged