changed Entity to subclass NSProxy to avoid NSObject overloads