scaling: base classes and config