jc process of adding the base classes from the php code