use public scope for init_filter and deinit_filter