Made it work by kludgily redefining the Triadifier getclass method.