fix searching clients
- add auth
- fix some mistakes
- all functions works