refactoring:
- url patterns
- records counting