refactored filters & fixed kryo serialization problem