working on implementing more general has and select operations
implemeting deferred select operations for entities