cleaned up get_filter* functions