moved FilterClass to separate file + import in try block