rename filter_list to filter_map, move code to single file