How to implement findname etc here?