add classes and registration