add custom filter for public sessions