avoid using Topology class inside categorizers, bugfixes