filter by entries
and json for filtering by actions
some refactory