a bit more sophisticated episode filter