support for __name__ action with named ctor