make loadFromObj private