change known_entities from list to set in GateLoader too