singleton_class does not appear to be called anywhere