improved support for extensions using get_called_class() for new instances name