Adapting dispatcher and classes in order to use yaml as a descriptor to build all classes.