try to filter map before search for frontiers