refactored autodescribe's register_classes()