make find() and pickOne() work for objects