add findEntity method