fixes #1761

now using <object>.class.name