- use phps builtin methods
- log when filter is not valid